﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using Tamias.BasicCmsPortableArea.Messages;

namespace Tamias.BasicCmsPortableArea.Areas.CmsAdmin.Controllers
{
    public class CmsAdminController : Controller
    {
        public ActionResult Index()
        {
            var message = new IsAuthenticatedMessage();
            MvcContrib.Bus.Send(message);

            if (message.IsAuthenticated)
                return new RedirectResult("/Home/About");

            return View();
        }
    }
}
